from flask import render_template
from flask_cors import CORS

@app.route("/")
def index():
    return """
        <ul>
            <li><a href="%s">银行卡开户</a></li>
            <li><a href="%s">银行管理</a></li>
            <li><a href="%s">用户管理</a></li>
        </ul>
    """

@app.errorhandler(404)
def notfound():
    return render_template('404.html')

if __name__ == '__main__':
    CORS().init_app(app)

    # 将蓝图注册到flask服务中
    app.register_blueprint(bank.blue,url_prefix='/bank')